package com.cskaoyan.mapper;

import com.cskaoyan.bean.MarketAdmin;
import com.cskaoyan.bean.MarketAdminExample;

import com.cskaoyan.bean.zhangshizhi.web.admin.AdminCreateBO;
import com.cskaoyan.bean.zhangshizhi.web.admin.AdminDeleteBO;
import com.cskaoyan.bean.zhangshizhi.web.admin.AdminInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


public interface MarketAdminMapper {

    long countByExample(MarketAdminExample example);

    int deleteByExample(MarketAdminExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketAdmin record);

    int insertSelective(MarketAdmin record);

    List<MarketAdmin> selectByExample(MarketAdminExample example);

    MarketAdmin selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketAdmin record, @Param("example") MarketAdminExample example);

    int updateByExample(@Param("record") MarketAdmin record, @Param("example") MarketAdminExample example);

    int updateByPrimaryKeySelective(MarketAdmin record);

    int updateByPrimaryKey(MarketAdmin record);


    List<String> selectPermissionByRoleIds(@Param("IdList") List<Integer> IdList);

    // 废弃方法
    List<AdminInfo> selectAllAdmin(String sort, String order);

    void insertAdmin(@Param("adminCreateBO") AdminCreateBO adminCreateBO, @Param("data") Date date);

    void deleteAdmin(@Param("adminDeleteBO") AdminDeleteBO adminDeleteBO);

    void updateBymarketAdmin(@Param("marketAdmin") MarketAdmin marketAdmin);


    List<String> selectApi(@Param("permissions") List<String> permissions);
}